package com.atguigu.jinx.entity.vo;


import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serializable;


@Data
public class LoginPhoneVO implements Serializable {


    /**
     * 手机号
     */
    @Pattern(regexp = "^(1[3-9]\\d{9}|0\\d{9,10})$", message = "手机号格式不正确")
    private String phone;


    /**
     * 邮箱
     */
    @Email(message = "邮箱格式不正确")
    private String email;

    /**
     * 手机验证码
     */
    @NotEmpty(message = "验证码不得为空")
    private String smsCode;

}
